<?php 
$cs=Yii::app()->clientScript;
$cs->registerScriptFile(Yii::app()->baseUrl.'/js/jquery.min.js');
$cs->registerScriptFile(Yii::app()->baseUrl.'/js/validate.js');

$form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-changepwd-form',
	'enableAjaxValidation'=>true,
	'enableClientValidation'=>true, 
)); 

	
	
?>

	<p class="note">Change your password here: </p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php //echo $form->labelEx($model,'userType'); ?>
		<?php //echo $form->textField($model,'userType'); ?>
		<?php //echo $form->error($model,'userType'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'userName'); ?>:
		<label style="color:green;font-size:13pt;"><?php echo $model->userName;?></label>
		
		
	</div>
	<br/>
	<div class="row">
		<?php echo $form->labelEx($model,'userEmail'); ?>:
		<label style="color:green;font-size:13pt;"><?php echo $model->userEmail;?></label>
		
	</div>
	<br/>
	<div class="row">
		<label>old password:</label>
		<input type="password" name="oldpwd"/>	
	</div>
	<br/>
	<div class="row">
	<label>new password:</label>
	<input type="password" name="newpwd1" id="newpwd1"/>
	</div>
	
	
	<br/>
	<div class="row">
	<label>retype new password:</label>
	<input type="password" name="newpwd2" id="newpwd2"/> <div id="errorInfo" style="display:none"/>
	</div>
	<br/>
	
	<div class="row">
		<?php //echo $form->labelEx($model,'salt'); ?>
		<?php //echo $form->textField($model,'salt',array('size'=>60,'maxlength'=>128)); ?>
		<?php //echo $form->error($model,'salt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'accountBalance'); ?>:	
		<label style="color:green;font-size:13pt;"><?php echo $model->accountBalance;?></label>
	</div>
	<br/>
	<div class="row">
		<?php echo $form->labelEx($model,'created'); ?>:
		<label style="color:green;font-size:13pt;"><?php echo $model->created;?></label>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'isAuth'); ?>
		<?php //echo $form->textField($model,'isAuth'); ?>
		<?php //echo $form->error($model,'isAuth'); ?>
	</div>
	<br/>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->